import java.util.Scanner;
public class Calculator {
    String band;
    String color;
    String price;
    public void jiafa(){
        Scanner in=new Scanner(System.in);
        System.out.println("请输入第一个数：");
        int a=in.nextInt();
        System.out.println("请输入第二个数：");
        int b=in.nextInt();
        int c=a+b;
        System.out.println("两数之和是："+a+"+"+b+"="+c);
    }
    public void jianfa(){
        Scanner in=new Scanner(System.in);
        System.out.println("请输入要减的数：");
        int a=in.nextInt();
        System.out.println("请输入要减去的数：");
        int b=in.nextInt();
        int c=a-b;
        System.out.println(a+"减去"+b+"的结果是："+a+"-"+b+"="+c);
    }
    public void chengfa(){
        Scanner in=new Scanner(System.in);
        System.out.println("请输入要计算的第一个数：");
        int a=in.nextInt();
        System.out.println("请输入要乘上的数：");
        int b=in.nextInt();
        int c=a*b;
        System.out.println(a+"乘以"+b+"的结果是："+a+"*"+b+"="+c);
    }
    public void chufa(){
        Scanner in=new Scanner(System.in);
        System.out.println("请输入要除的数：");
        int a=in.nextInt();
        System.out.println("请输入要除去的数：");
        int b=in.nextInt();
        int c=a/b;
        System.out.println(a+"除以"+b+"的结果是："+a+"/"+b+"="+c);
    }
}
